
#pragma once

//sharp ir io define
#if defined(CONFIG_BREAKOUT_REV) && (CONFIG_BREAKOUT_REV == 3)
#define BOTTOM_IR_R1_PORT    GPIOC
#define BOTTOM_IR_R1_PIN     GPIO_Pin_2 //PC2 ADC123_IN12
#define BOTTOM_IR_R1_ADC_CH  12
#else
#define BOTTOM_IR_R1_PORT    GPIOA
#define BOTTOM_IR_R1_PIN     GPIO_Pin_0 //PA0 ADC123_IN0
#define BOTTOM_IR_R1_ADC_CH  0
#endif
#define BOTTOM_IR_R2_PORT    GPIOC
#define BOTTOM_IR_R2_PIN     GPIO_Pin_1 //PC1 ADC123_IN11
#define BOTTOM_IR_R2_ADC_CH  11
#define BOTTOM_IR_R3_PORT    GPIOC
#define BOTTOM_IR_R3_PIN     GPIO_Pin_4 //PC4 ADC123_IN14
#define BOTTOM_IR_R3_ADC_CH  14
#define BOTTOM_IR_R4_PORT    GPIOA
#define BOTTOM_IR_R4_PIN     GPIO_Pin_4 //PA4 ADC12_IN4
#define BOTTOM_IR_R4_ADC_CH  4
#define IR_SENSOR_SAMPLE_ADC     2
//红外传感器ID号定义
#define IRSENSOR_FRONT_R1_ID    0
#define IRSENSOR_FRONT_R2_ID    1
#define IRSENSOR_FRONT_R3_ID    2
#define IRSENSOR_FRONT_R4_ID    3
#define IRSENSOR_BOTTOM_R1_ID   0
#define IRSENSOR_BOTTOM_R2_ID   1
#define IRSENSOR_BOTTOM_R3_ID   2
#define IRSENSOR_BOTTOM_R4_ID   3